package com.bp.hearthealth.pulse.lnapps.bp_db.bp_bloodpressure

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.TypeConverters

@Entity(tableName = "blood_pressure_surface")
@TypeConverters(BpBloodPressureListConverter::class)
data class BloodPressure(
    @PrimaryKey(autoGenerate = true) val id: Long = 0,
    @ColumnInfo(name = "userId") val userId: String,
    var date: Long,
    @ColumnInfo(name = "timeStamp") var timeStamp: Long,
    var bloodPressureList: List<BloodPressureData>,
) {
    override fun toString(): String {
        return "BloodPressure(id=$id, userId='$userId', date=$date, timeStamp=$timeStamp, bloodPressureList=$bloodPressureList)"
    }
}
